<template>
  <el-breadcrumb class="app-breadcrumb" separator="">
    <transition-group name="breadcrumb">
      <el-breadcrumb-item :key="'value'">
        <span class="splite"></span> 
        <div class="titlen-n">江淮松芝• 工装设备管理系统</div>
        <!--<div style="position: absolute;left: 28%;color:#ffffff;top: 23%;font-size: 32px;font-weight: bold;letter-spacing: 4px;">南京博士朗• 工装设备管理系统</div>-->
      </el-breadcrumb-item>
    </transition-group>
  </el-breadcrumb>
</template>

<script>
export default {
  name: 'nxBreadcrumb',
  created() {
    this.getBreadcrumb()
  },
  data() {
    return {
      levelList: null,
      title:''
    }
  },
  watch: {
    $route() {
      this.getBreadcrumb()
    }
  },
  methods: {
    getBreadcrumb() {
      let matched = this.$route.matched.filter(item => item.name)
      const first = matched[0]
      if (first && first.name !== 'dashboard') {
        matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
      }
      this.levelList = matched
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
    @font-face {
        font-family: 'fonta';  //重命名字体名
        src: url('../../assets/fonts/fontFamily.ttf');  //引入字体
    }
  .app-breadcrumb.el-breadcrumb {
    display: inline-block;
    font-size: 14px;
    line-height: 50px;
    .no-redirect {
      color: #97a8be;
      cursor: text;
    }
    .splite {
        width: 1px;
        height: 25px;
        background-color: #fff;
        position: absolute;
        top: 12px;
        left: 170px;
    }
    .titlen-n {
        color:#fff;
        font-size: 22px;
        letter-spacing: 2px;
        margin-left: 15px;
        font-family: 'fonta';
    }
  }

</style>
